home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 28 / Mac Magazin and MacEasy Magazine CD - Issue 28.iso / Wissenschaft & Technik / DLOGManager 1.02 / ReadMe < prev    next >
Text File  |  1996-10-09  |  8KB  |  154 lines

  1. _______________________________
  2. Contact Information
  3.  
  4. Cadili Francesco
  5. via Marconi 15
  6. 21026 Gavirate (VA)
  7. Italy
  8. Email: <cadili@kagi.com>            (registration, info & bugs reports)
  9. Email: <cadili@skylink.it>  (bugs reports, suggestion)
  10. N.B. I send a Email on your questions only if you have register the program.
  11. _______________________________
  12. DLOG Manager 1.02 - $15
  13.  
  14. DLOG Manager is a library that can help in handle a DLOG structure. You define the DLOGs item in a Template structure 'EdF2'.
  15. It includes different feature that apple DLOG manager dosn't support.
  16.     a)    uses styl Text Edit for input and output.
  17.      b)    uses  trumbs to manage greater text.
  18.     c)    uses multi-level pop-ups.
  19.     d)    uses input field with pop-ups.
  20.  
  21. I raccomand you to try the program for a cupple of week and the decide to register it or to delete it. You can obtain more information typist Cmd-Opt-I in the main window (the one that appare after you type Cmd-N).
  22.  
  23. The package contains two 68K version, one for the MPW 3.3.1 and one for THINK C 7.07.
  24. The two folder contain a program DLOGManagerSample 1.02 that swhow the management capacity of the library.
  25.  
  26. Example
  27. The code for managing this DLOG is:
  28.  
  29. /***
  30.  *        help();
  31.  *
  32.  *        mostra l'help DLOG. 
  33.  *        (helpDialog = 132, helpDLOGDescr = 132)
  34.  *
  35.  ***/
  36. void CgestisciDLOGDati::help(void)
  37. {
  38.         DialogPtr                                                helpDialog;
  39.         CgestisciDLOGDati    helpDLOG;
  40.         EventRecord                                        event;
  41.         short                                                                itemHit, pos;
  42.         Boolean                                                            status;
  43.  
  44.         helpDialog = GetNewDialog(helpDLOGID, NULL, (WindowPtr)-1L);
  45.         if (helpDialog != NULL && !helpDLOG.IgestisciDLOGDati(helpDialog, helpDLOGDescr))
  46.         {
  47.                 helpDLOG.disableAboutDLOG = true;
  48.              do
  49.              {                    
  50.                         helpDLOG.idle();
  51.                      GetNextEvent(everyEvent, &event);
  52.                      itemHit = helpDLOG.gestEvent(&event);                                    //    gestisce i keyDown & equivalent
  53.                      if (itemHit == -1 && IsDialogEvent(&event))
  54.                      {
  55.                              DialogSelect(&event, &helpDialog, &itemHit);
  56.                              helpDLOG.itemSelect(&event, itemHit, &pos, &status);            // gestisce l'item
  57.                      }
  58.                      if (itemHit == okhelpDLOGitem)
  59.                                 break;
  60.                      }
  61.                      while(true);
  62.                      helpDLOG.Dispose();
  63.                      DisposDialog(helpDialog);
  64.             }
  65.             else if (helpDialog != NULL)
  66.                      DisposDialog(helpDialog);
  67. }
  68.  
  69.  
  70.  
  71. Where the tempate structure 'EdF2' is:
  72.  
  73.             Diasable DLOG Manager Info              BOOL            Viene posto a true se all'interno
  74.                                                                                                                                                                                             dei DLOG non e' possibile accedere
  75.                                                                                                                                                                                             al DLOG delle informazioni sulla 
  76.                                                                                                                                                                                             libreria DLOG Manager version 1.01
  77.                                                                                                                                                                                             tramite la sequenza Comd-Opt-I.
  78.             Number of Edit Field                       ZCNT            Le caratteristiche di tutti i campi 
  79.                                                                                                                                                                                             Text-Edit presenti nel DLOG:
  80.                                 *****                                                                                    LSTC
  81.                                 Edit Field                                                                DWRD            L'item del campo di input (user item) 
  82.                              Font                                                                                        PSTR            Il Font del campo di input
  83.                                     Size                                                                                        DWRD            La dimensione del font usato
  84.                                 chicago font allignement        BOOL            Viene posto a true se si vuole allineare
  85.                                                                                                                                                                                             il font al font di sistem (chicago 12)
  86.                                 Has ScrollBar                                                 BOOL            Posto a true se il campo di input ha lo
  87.                                                                                                                                                                                             scroll bar (verticale).
  88.                                 Has Orizzontal ScrollBar        BOOL            Posto a true se il campo di input ha lo
  89.                                                                                                                                                                                             scroll bar (orizzontale).
  90.                                 Can Modify Font                                            BOOL            posto a true se l'utente può modificare
  91.                                                                                                                                                                                             lo stile del campo di input.
  92.                                 inizialize with styl ID            BOOL            il testo con cui inizializzare il campo
  93.                                                                                                                                                                                              (memorizzato in campo 'TEXT' and 'styl')
  94.                                 Has PopUp                                                                    BOOL            Posto a true se il campo di input ha as-
  95.                                                                                                                                                                                             sociato un popup.
  96.                                 PopUp Field                                                            DWRD            item del DLOG corrispondente al pop up
  97.                                                                                                                                                                                             (user item)
  98.                              PopUp                                                                                    DWRD            ID del menu del pop up (ID di una risorsa
  99.                                                                                                                                                                                              MENU con ID < 255)
  100.                                 *****                                                                                 LSTE
  101.             Number of List Field                                            ZCNT            Le caratteristiche di tutti i campi 
  102.                                                                                                                                                                                             lista presenti nel DLOG:
  103.                              *****                                                                                 LSTC         
  104.                                 Edit Field                                                                DWRD            L'item del campo lista (user item).
  105.                                 Number of Item                                                ZCNT            Descrizione degli elementi che compongono
  106.                                                                                                                                                                                             la lista (numero di colonne)
  107.                                                  *****                                                             LSTC         
  108.                                                     Dimensione                                            DWRD            Dimensione in pixel della colonna
  109.                                                     Titolo                                                            PSTR            Titolo della colonna posto 4 pixel sopra,
  110.                                                                                                                                                                                                 allineamento a sinistra rientrato di 4
  111.                                                                                                                                                                                                 pixel.
  112.                                                     Font Titolo                                        PSTR            Font del titolo
  113.                                                     Size Font Titolo                    DWRD            Size del titolo
  114.                                                  Font                                                                    PSTR            Font usato per le scritte interne
  115.                                                             Size                                                                    DWRD            Dimensione delle scritte
  116.                                                     Can Modify                                            BOOL            Posto a true se è possibile modificare il
  117.                                                                                                                                                                                             contenuto della colonna.
  118.                                                  *****                                                             LSTE         
  119.                                 Has ScrollBar                                                    BOOL            Posto a true se la lista ha lo scroll (ver-
  120.                                                                                                                                                                                             ticale)
  121.  
  122.                                 Has Number Field                                        BOOL            Se la lista ha la colonna di numerazione 
  123.                                                                                                                                                                                             (larghezza 20 pixel).
  124.                                 Number Font                                                            PSTR            La font usata nel campo numerico.
  125.                                 Number Size                                                            DWRD            La dimensione del font.
  126.                              *****                                                                                 LSTE         
  127.                     Number of PopUp Field                                ZCNT            Le caratteristiche degli uteriori popup
  128.                                                                                                                                                                                             presenti nel DLOG.
  129.                                 *****                                                                                 LSTC         
  130.                                 PopUp Field                                                            DWRD            L'item del popup (user item).
  131.                                 PopUp                                                                                 DWRD            L'ID del menu (minore di 255).
  132.                                 *****                                                                                 LSTE         
  133.                     Default info                                                                    ZCNT            Le informazioni sui bottoni di default.
  134.                                  *****                                                                             LSTC         
  135.                                     Input field                                                        DWRD            item del campo di input associato al 
  136.                                                                                                                                                                                                 bottotone (<= 0 se il bottone non è 
  137.                                                                                                                                                                                                 associato ad alcun campo.
  138.                                     Button field                                                    DWRD            Numero di item del bottone.
  139.                                     *****                                                                             LSTE         
  140.                     Cancel Button                                                                DWRD            Il bottone cancel (associato all'Esc key)
  141.                     Button Equivalent                                                ZCNT            Descrittori dei command equivalent asso-
  142.                                                                                                                                                                                             ciati ai bottoni.
  143.                                                                                                                                                 
  144.                              *****                                                                             LSTC         
  145.                                 Key Char                                                                    CHAR                codice del carattere associato.
  146.                                 Button field                                                    DWRD                numero di item del bottone.
  147.                                 *****                                                                             LSTE         
  148.  
  149.  
  150. DLOG Manager is a shareware you can use for 60 days, after those you have to pay your share fee.
  151. You can include the library in your code if you pay the fee:
  152.         $15    for a student use (non-commercial use).
  153.         $50    for a commercial use.
  154.